package com.sip.stream.gbstack.RespondModel;

import com.sip.stream.gbstack.GS28181SDK;

import java.util.Date;

public class GS28181DeviceStatusRespondModel {
    private long sessionHandle;
    private String deviceGBCode = GS28181SDK.getInstance().getConfig().getDeviceGBCode();
    private String time = GS28181SDK.getInstance().getFormatDateString(new Date());
    private String errReason = GS28181SDK.getInstance().getStatus().getErrReason();
    private boolean isEncode = GS28181SDK.getInstance().getStatus().isEncode();
    private boolean isRecord = GS28181SDK.getInstance().getStatus().isRecord();
    private boolean isOnline = GS28181SDK.getInstance().getStatus().isOnline();
    private boolean isStatusOK = GS28181SDK.getInstance().getStatus().isStatusOK();

    public GS28181DeviceStatusRespondModel(long sessionHandle) {
        this.sessionHandle = sessionHandle;
    }

    public long getSessionHandle() {
        return this.sessionHandle;
    }

    public String getDeviceGBCode() {
        return this.deviceGBCode;
    }

    public void setDeviceGBCode(String deviceGBCode) {
        this.deviceGBCode = deviceGBCode;
    }

    public String getTime() {
        return this.time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getErrReason() {
        return this.errReason;
    }

    public void setErrReason(String errReason) {
        this.errReason = errReason;
    }

    public boolean isEncode() {
        return this.isEncode;
    }

    public void setEncode(boolean isEncode) {
        this.isEncode = isEncode;
    }

    public boolean isRecord() {
        return this.isRecord;
    }

    public void setRecord(boolean isRecord) {
        this.isRecord = isRecord;
    }

    public boolean isOnline() {
        return this.isOnline;
    }

    public void setOnline(boolean isOnline) {
        this.isOnline = isOnline;
    }

    public boolean isStatusOK() {
        return this.isStatusOK;
    }

    public void setStatusOK(boolean isStatusOK) {
        this.isStatusOK = isStatusOK;
    }
}
